Part Number Hot Search : 
N4761 P6KE39 S475C 106K0 ISD1416 TL082 TLOU160 03515
Product Description
Full Text Search
 

To Download MCP390112 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2012 microchip technology inc. ds51968a mcp3901 and pic18f65j90 energy meter reference design user?s guide
ds51968a-page 2 ? 2012 microchip technology inc. information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mxdev, mxlab, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, app lication maestro, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, total endurance, tsharc, uniwindriver, wiperlock and zena are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. all other trademarks mentioned herein are property of their respective companies. ? 2012, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 978-1-61341-960-1 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specifications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconductor manufacturer c an guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvi ng the code protection features of our products. attempts to break microchip?s c ode protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified.
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 3 table of contents preface ....................................................................................................................... .... 7 introduction............................................................................................................ 7 document layout .................................................................................................. 8 conventions used in this guide ............................................................................ 9 recommended reading...................................................................................... 10 the microchip web site ...................................................................................... 10 customer support ............................................................................................... 10 document revision history ................................................................................. 10 chapter 1. product overview 1.1 introduction ................................................................................................... 11 1.2 what the mcp3901 and pic18f65j90 energy meter reference design kit includes ............................................................... 12 1.3 getting started ............................................................................................. 12 chapter 2. hardware 2.1 overview ...................................................................................................... 13 2.2 input and analog front end ......................................................................... 16 chapter 3. calculation engine and register description 3.1 calculation engine signal flow summary ................................................... 17 3.2 register list ................................................................................................. 18 3.3 mode ........................................................................................................... 19 3.4 status ....................................................................................................... 20 3.5 cal_control ........................................................................................... 20 3.6 line_cyc ................................................................................................... 21 3.7 line_cyc_cnt ......................................................................................... 21 3.8 raw2_i_rms .............................................................................................. 21 3.9 raw_i_rms ................................................................................................ 22 3.10 i_rms ........................................................................................................ 22 3.11 raw2_v_rms ......................................................................................... 22 3.12 raw_v_rms ........................................................................................... 22 3.13 v_rms ....................................................................................................... 22 3.14 line_frequency ................................................................................... 23 3.15 raw_power_act ................................................................................. 23 3.16 power_act ............................................................................................. 23 3.17 power_app ............................................................................................ 23 3.18 raw_power_react ............................................................................. 24 3.19 power_react ........................................................................................ 24
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 4 ? 2012 microchip technology inc. 3.20 period ...................................................................................................... 24 3.21 energy_act ........................................................................................... 24 3.22 energy_app .......................................................................................... 25 3.23 i_abs_max ............................................................................................... 25 3.24 v_abs_max .............................................................................................. 25 3.25 energy_react ...................................................................................... 25 3.26 phase_compensation ........................................................................ 25 3.27 offset_i_rms ....................................................................................... 26 3.28 offset_v_rms ...................................................................................... 26 3.29 gain_i_rms ............................................................................................. 26 3.30 gain_v_rms ............................................................................................ 26 3.31 offset_power_act .......................................................................... 26 3.32 gain_power_act .................................................................................. 27 3.33 offset_power_react ...................................................................... 27 3.34 gain_power_react ............................................................................. 27 3.35 gain_energy_act ................................................................................ 27 3.36 gain_energy_app ................................................................................ 27 3.37 gain_energy_react ........................................................................... 27 3.38 cf_pulse_width ................................................................................... 28 3.39 gain_denr_energy_act .................................................................... 28 3.40 gain_numr_energy_act ................................................................... 28 3.41 mode1_def ........................................................................................... 28 3.42 cal_status ............................................................................................ 28 3.43 maximum current ............................................................................. 29 3.44 calibration_voltage ...................................................................... 29 3.45 calibration_current ...................................................................... 29 3.46 calibration_frequency .................................................................. 29 3.47 meter_constant ................................................................................ 29 3.48 calibration_line_cycle .................................................................. 30 3.49 gain_denr_energy_react .............................................................. 30 3.50 gain_numr_energy_react ............................................................. 30 3.51 phase_compensation_90 ................................................................. 30 3.52 creep_thrshold_minute ................................................................. 30 3.53 creep_thrshold_second ................................................................ 30 chapter 4. meter protocol and timings 4.1 protocol ....................................................................................................... 31 appendix a. schematic and layouts a.1 introduction .................................................................................................. 33 a.2 schematics and pcb layout ....................................................................... 33 a.3 board ? adc schematic ............................................................................. 34 a.4 board ? mcu schematic ............................................................................ 35 a.5 board ? lcd and usb schematic ............................................................... 36 a.6 board ? top silk and pads ......................................................................... 37 a.7 board ? top copper .................................................................................... 38
? 2012 microchip technology inc. ds51968a-page 5 a.8 board ? bottom copper ............................................................................... 39 a.9 board ? bottom silk and pads ..................................................................... 40 a.10 board ? top 3d .......................................................................................... 41 a.11 board ? bottom 3d .................................................................................... 42 appendix b. bill of materials (bom) worldwide sales and service .................................................................................... 46
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 6 ? 2012 microchip technology inc.
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 7 preface introduction this chapter contains general information that will be useful to know before using the mcp3901 and pic18f65j90 energy meter reference design user?s guide. items discussed in this chapter include: ? document layout ? conventions used in this guide ? recommended reading ? the microchip web site ? customer support ? document revision history notice to customers all documentation becomes dated, and this manual is no exception. microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. please refer to our web site (www.microchip.com) to obtain the latest documentation available. documents are identified with a ?ds? number. this number is located on the bottom of each page, in front of the page number. the numbering convention for the ds number is ?dsxxxxxa?, where ?xxxxx? is the document number and ?a? is the revision level of the document. for the most up-to-date information on development tools, see the mplab ? ide online help. select the help menu, and then topics to open a list of available online help files.
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 8 ? 2012 microchip technology inc. document layout this document describes how to use the mcp3901 and pic18f65j90 energy meter reference design as a development tool to emulate and debug firmware on a target board. the manual layout is as follows: ? chapter 1. ?product overview? ? important information on using the mcp3901 and pic18f65j90 energy meter reference design including a getting started section that describes wiring the line and load connections. ? chapter 2. ?hardware? ? includes details on the function blocks of the meter including the analog front end design, phase lock loop circuitry, and power supply design. ? chapter 3. ?calculation engine and register description? ? this section describes the digital signal flow for all power output quantities such as rms current, rms voltage, active power, and apparent power. this section also includes the calibration register?s detail. ? chapter 4. ?meter protocol and timings? ? this chapter describes the protocol used for accessing the registers, including commands that are used to interface to the meter. ? appendix a. ?schematic and layouts? ? shows the schematic and layout diagrams. ? appendix b. ?bill of materials (bom)? ? lists the parts used to build the mcp3901 and pic18f65j90 energy meter reference design.
preface ? 2012 microchip technology inc. ds51968a-page 9 conventions used in this guide this manual uses the following documentation conventions: documentation conventions description represents examples arial font: italic characters referenced books mplab ? ide user?s guide emphasized text ...is the only compiler... initial caps a window the output window a dialog the settings dialog a menu selection select enable programmer quotes a field name in a window or dialog ?save project before build? underlined, italic text with right angle bracket a menu path file>save bold characters a dialog button click ok a tab click the power tab n?rnnnn a number in verilog format, where n is the total number of digits, r is the radix and n is a digit. 4?b0010, 2?hf1 text in angle brackets < > a key on the keyboard press , courier new font: plain courier new sample source code #define start filenames autoexec.bat file paths c:\mcc18\h keywords _asm, _endasm, static command-line options -opa+, -opa- bit values 0, 1 constants 0xff, ?a? italic courier new a variable argument file .o , where file can be any valid filename square brackets [ ] optional arguments mcc18 [options] file [options] curly brackets and pipe character: { | } choice of mutually exclusive arguments; an or selection errorlevel {0|1} ellipses... replaces repeated text var_name [, var_name...] represents code supplied by user void main (void) { ... }
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 10 ? 2012 microchip technology inc. recommended reading this user's guide describes how to use the mcp3901 and pic18f65j90 energy meter reference design. other useful documents are listed below. the following microchip documents are available and recommended as supplemental reference resources. mcp3901 data sheet ? ?two channel analog front end? (ds22192) this data sheet provides detailed information regarding the mcp3901 device. an994 ? ?iec compliant active-energy meter design using the mcp3905a/06a? (ds00994) this application note documents the design decisions associated with using the mcp390x devices for energy meter design and iec compliance. the microchip web site microchip provides online support via our web site at www.microchip.com . this web site is used as a means to make files and information easily available to customers. accessible by using your favorite internet browser, the web site contains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s guides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faqs), technical support requests, online discussion groups, microchip consultant program member listing ? business of microchip ? product selector and ordering guides, latest microchip press releases, listing of seminars and events, listings of microchip sales offices, distributors and factory representatives customer support users of microchip products can receive assistance through several channels: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support customers should contact their distributor, representative or field application engineer (fae) for support. local sales offices are also available to help customers. a listing of sales offices and locations is included in the back of this document. technical support is available through the web site at: http://www.microchip.com/support . document revision history revision a (january 2012) ? initial release of this document.
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 11 chapter 1. product overview 1.1 introduction the mcp3901 and pic18f65j90 energy meter reference design is a fully functional iec class 0.5 compliant single-phase meter. this low-cost design does not use any transformers and requires few external components. the pic18f65j90 directly drives the lcd, and includes both an isolated usb connection for meter calibration and access to the device power calculations. the system calculates active energy, active power, rms current, rms voltage, reactive energy, reactive power, apparent power and other typical power quantities. the microchip energy meter 1-phase software is used to calibrate and monitor the system, and can be used to create custom calibration setups. for some accuracy requirements, only a single point calibration may be needed. the energy meter software offers an automated step-by-step calibration process that can be used to quickly calibrate energy meters. figure 1-1: mcp3901 and pic18f65j90 single-phase energy meter.
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 12 ? 2012 microchip technology inc. 1.2 what the mcp3901 and pic18f65j90 energy meter reference design kit includes this mcp3901 and pic18f65j90 energy meter reference design kit includes: ? mcp3901 and pic18f65j90 energy meter reference design user?s guide ? important information sheet 1.3 getting started to describe how to use the mcp3901 and pic18f65j90 energy meter reference design, the following example is given using a two-wire 1-phase, 220 vac line voltage and connections using energy meter calibrator equipment, or other programmable load source. the meter design uses a 5a load for calibration current, and a maximum current (i max ) of 60a. to test a calibrated meter, the following connections apply for a two-wire connection. 1.3.1 step 1: wiring connections figure 1-2 identifies the line and load connections of the mcp3901 and pic18f65j90 energy meter reference design. figure 1-2: example connections using a 2-wire system. 1.3.2 step 2: turn on line/load power to the meter (power the meter) the meter will turn on when the line connection has 220v connected. the lcd display will show the total energy accumulated. line neutral main load line neutral 1 2 3 4
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 13 chapter 2. hardware 2.1 overview figures 2-1 and 2-2 show the mcp3901 and pic18f65j90 and energy meter reference design: figure 2-1: top view ? hardware components. danger high voltage mcp3901 / pic18f65j90 shunt meter j2 u1 d1 d9d8 d3 d2 j3 lcd1 p1 j4 sw2 sw1 sw3 1 2 4 5 10 9 8 7 6 legend : 1 = ir for meter communication 7 = push button switches 2 = test points 8 = 9-digit lcd display with icons for kwh and kvarh 3 = mcp3901 analog front end 9 = pulse output for active and reactive (isolated) 4 = +9v dc input (non-isolated) 10 = usb connection (isolated) 5 = connections to shunt current sensing resistor 6 = connections to line and neutral 3 c40
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 14 ? 2012 microchip technology inc. . figure 2-2: bottom view ? hardware components. danger high voltage r34 r30 r33 c37 c7 c39 c40 r24 r25 u3 c24 c25 r27 r26 r28 l3 c23 r31 c30 c27 c21 c22 c4 c10 c19 d7 c17 c16 r18 r17 u6 u4 d4 d5 q1 c41 u7 r15 r11 c1 r14 r12 r29 r32 l2 d6 r19 c6 c5 c2 u8 c32 mov1 c8 c9 c38 l1 r20 r21 x2 u2 u5 13 12 17 16 15 14 legend : 12 = opto-isolators for pulse outputs 13 = power supply 14 = non-volatile memory for calibration constants and energy usage data 15 = pic18f65j90 16 = isolation ic 17 = mcp2200 for usb connection
hardware ? 2012 microchip technology inc. ds51968a-page 15 figure 2-3: digital connections. switch pic18f65j90 spi - eeprom rc3/sck rc5/sdo rc4/sdi sck sdo sdi cs ra1 25lc256 rc6/tx rc7/rx ra2 ra3 active power reactive power rg1 switch rg4 usb to uart mcp2200 mini - usb connector (isolated) converter afe sck sdo sdi cs mcp3901 ra5
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 16 ? 2012 microchip technology inc. 2.2 input and analog front end the mcp3901 and pic18f65j90 and energy meter reference design comes populated with components designed for 220v line voltage. at the bottom of the main board are the high voltage line and neutral connections. there are four connections that are made from the pcb to the meter casing. they are labeled line, neutral, shunt1, and shunt2. the shunt sits on th e high or line side of a two-wire system and the meter employs a hot or ?live? ground. the wires going into the shunt to shunt1 and shunt2 should be twisted together. the wires going into the line and neutral side of the meter should be twisted together, and also kept away from the shunt1 and shunt2 wires if possible. the neutral side of the two-wire system goes into a resistor divider on the voltage channel input. anti-aliasing low-pass filters will be included on both differential channels. the voltage channel uses two 332 k resistors to achieve a divider ratio of 664:1. for a line voltage of 230 v rms , the channel 1 input signal size will be 490 mv peak . figure 2-4: analog input circuitry. 68 nf 1.0 k 68 nf 1.0 k 68 nf 0 332 k 332 k 1.0 k 68 nf 1.0 k mcp3901 ch0+ ch0- ch1+ ch1+ neutral note: fb = ferrite beads. ferrite beads have an impedance of the specified value at 100 mhz. 10-step optional ladder line_shunt1 line_shunt2 150 fb (note) 150 fb (note) resistor shunt (external to pcb part of meter case)
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 17 chapter 3. calculation engi ne and register description 3.1 calculation engine signal flow summary rms voltage, rms current, active power, reactive power and apparent power, and the calibration output pulse are all calculated through the following process described in figure 3-1. the calibration registers for each calculation are shown as well as the output registers. figure 3-1: pic18f65j90 calculation engine signal flow x x 2 x offset_power_act: 32 x 2 offset_v_rms: 16 16/24-bit ? adc adc current digital to frequency converter / gain_ numr_energy_act:16 gain_denr_energy_act: 8 gain_energy_act: 16 i _rms:16 active power rms current rms voltage kw kva kvah x x gain_energy_app: 16 v x a gain_v_rms: 16 gain_i_rms: 16 power_app: 32 energy_ act:32 kwh x power_act: 32 gain_power_act: 16 v _rms:16 apparent power energy_ react:32 x imp/kwh x kvarh gain_power_react: 16 gain_energy_react: 16 power_react: 32 energy_ app:32 offset_i_rms: 16 16/24-bit ds adc x reactive power correction 90 with o ffset_power_react:32 adc digital to frequency converter / gain_ numr_energy_react:16 gain_ denr_energy_react:8 kvar imp/kvarh voltage ph ase_compensation:8 1/meter_constat 1/meter_constat gain_ _90: 8 x gain_power_app: 16 compensation x
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 18 ? 2012 microchip technology inc. 3.2 register list note: important! not all registers and features are implemented in this version of firmware release. table 3-1: internal register summary name bits r/w description mode 8 r/w configuration register for operating mode of the meter status 8 r status register cal_control 8 r/w configuration register for calibration control line_cyc 16 r/w 2 n number of line cycles to be used during energy accumulation line_cyc_cnt 16 r counter for number of line cycles raw2_i_rms 64 r raw 2 rms value from the current a/d converter in lsbs raw_i_rms 16 r raw rms value from the current a/d converter in lsbs i_rms 16 r rms value of the current, post calibration raw2_v_rms 64 r raw 2 rms value from the voltage a/d converter in lsbs raw_v_rms 16 r raw rms value from the voltage a/d converter in lsbs v_rms 16 r rms value of the voltage, post calibration line_frequency 16 r line frequency raw_power_act 64 r raw active power power_act 32 r final active power, units in watts (w) power_app 32 r final apparent power, units in volt-amperes (va) raw_power_react 64 r raw reactive power power_react 32 r final reactive power, units in volt-amperes-reactive (var) period 32 r period register energy_act 32 r final active energy accumulated raw_energy_act 64 r raw active energy accumulated energy_app 32 r final apparent energy accumulated raw_energy_app 64 r raw apparent energy accumulated i_abs_max 8 r not implemented v_abs_max 8 r not implemented energy_react 32 r final reactive energy accumulated raw_energy_react 64 r final reactive energy accumulated phase_compensation 8 r/w phase compensation between voltage and current offset_i_rms 16 r/w offset adjustment for rms current reading offset_v_rms 16 r/w offset adjustment for rms voltage reading gain_i_rms 16 r/w gain adjustment for rms current gain_v_rms 16 r/w gain adjustment for rms voltage offset_power_act 32 r/w active power offset gain_power_act 16 r/w active power gain adjust offset_power_react 32 r/w offset correction for reactive power gain_power_react 16 r/w reactive power gain adjust to produce x var/lsb gain_energy_act 16 r/w not implemented gain_energy_app 16 r/w not implemented gain_energy_react 16 r/w not implemented cf_pulse_width 8 r/w defines cf pulse width from 0 to 255 x 0.8192 ms (0.209s) gain_denr_energy_act 8 r/w active energy pulse output correction factor
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 19 3.3 mode the mode register controls the operation of the energy meter. the bit functions are defined by the table below. gain_numr_energy_act 16 r/w active energy pulse output correction factor mode1_def 16 r/w power up configuration register cal_status 16 r/w calibration status maximum current 16 r/w maximum current of the meter (i max ) calibration_voltage 16 r/w calibration voltage of the meter (v cal ) calibration_current 16 r/w calibration current of the meter (i cal ) calibration_frequency 16 r/w calibration frequency of the meter meter_constant 16 r/w meter constant in imp/kwh or imp/kvarh calibration_line_cycle 16 r/w number of line cycles for calibration gain_denr_energy_react 8 r/w reactive energy pulse output correction factor gain_numr_energy_react 16 r/w reactive energy pulse output correction factor phase_compensation_90 8 r/w phase delay for reactive power creep_thrshold_minute 8 r/w no load threshold time (minutes) creep_thrshold_second 8 r/w no load threshold time (seconds) energy_act 32 r/w active energy energy_react 32 r/w reactive energy table 3-1: internal register summary (continued) name bits r/w description register 3-1: mode register u-0 u-0 u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? ? ? cf absolute phase creep bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-4 unimplemented: read as ? 0 ?. bit 3 cf: active energy cf phase enable bit 1 = bit = 1 phase is enabled to be accumulated into the total energy registers or cf pulse output 0 = bit = 0 phase is disabled and is not accumulated into the total energy registers or cf pulse output bit 2 absolute positive only energy accumulation mode bit 1 = bit = 1 positive energy only 0 = bit = 0 both negative and positive energy accumulated (negative energy is subtracted) bit 1 phase: phase bit 1 = single-point phase correction 0 = multi-point phase correction (future) bit 0 creep: no-load threshold bit 1 = enabled 0 = disabled
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 20 ? 2012 microchip technology inc. 3.4 status the status register contains the operational status of the energy meter. the bit functions are defined in the table below. 3.5 cal_control this is the calibration mode control register. bit 0 enables the calibration mode. in this mode, the power meter operates as normal, but no updates are made to the voltage, current, power or energy registers as long as bit 1 is low. when bit 1 is set high, the registers are updated for line_cyc line cycles (only power and energy registers are updated). after this time, bit 1 is set low by the pic18f65j90 and the update of the registers will stop. this allows the calibration software to set bit 0, clear the registers, set bit 1 and start reading the desired registers, as well as the cal_control register, to check the status of bit 1. when bit 1 goes low, the line_cyc line cycles have passed and the registers are final. note that bit 0 takes effect immediately, and bit 1 will take effect on the very next line cycle. when bit 1 goes low, all registers will be ready to read. register 3-2: status register u-0 u-0 u-0 u-0 u-0 u-0 r u-0 ? ? ? ? ? ?ph_s ? bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-2 unimplemented: read as ? 0 ? bit 1 ph_s: phase sign bit 1 = ct may be in backward (if enabled) 0 = operation normal bit 0 unimplemented: read as ? 0 ? register 3-3: cal_control register (note 1) u-0 u-0 u-0 u-0 u-0 u-0 r/w-0 r/w-0 ? ? ? ? ? reserved cal_update cal_mode bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-3 unimplemented: read as ? 0 ? bit 2 reserved:
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 21 3.6 line_cyc number of line cycles as a power of two. a setting of 0 indicates 2 0 or one line cycle. a setting of 1 is two line cycles (2 1 ), a setting of 2 is four lines cycles (2 2 ), up to a setting of eight which is 256 line cycles. when written, this register will not take effect until the previous number of line cycles has been acquired. 3.7 line_cyc_cnt this register counts from 0 and finishes at 2 (line_cyc - 1) . then it restarts at 0, where line_cyc represents the value in the line_cyc register. 3.8 raw2_i_rms this register is the square of the raw rms value from the current a/d converter in lsbs. by definition, this register will always contain a positive value, including the sit- uation where power is negative from a backwards ct or otherwise. this register is overwritten every line_cyc line cycle and is written only once, if calibration is enabled. bit 1 cal_update: calibration update bit power and energy registers updated for line_cyc line cycles when cleared. bit must be set for reg- isters to begin updating, which starts on the next line cycle after bit is set. 1 = when the cal_mode bit is set, set the cal_update bit to enable update of power and energy registers starting on next line cycle. bit = 1 single point phase correction. 0 = when the cal_mode bit is set and the cal_update bit has been set, the cal_update bit will be cleared after line_cyc line cycles. at that point, all registers will be updated and no further updates will be done until the cal_update bit is set again, or the cal_mode bit is cleared. bit 0 cal_mode: calibration mode bit this bit enables calibration mode. 1 = calibration mode enabled 0 = calibration mode disabled note 1: this register is used in multi-point and single-point calibration modes only. name bits cof line_cyc 16 r/w register 3-3: cal_control register (continued)(note 1) name bits cof line_cyc_cnt 16 r name bits cof raw2_i_rms 64 r
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 22 ? 2012 microchip technology inc. 3.9 raw_i_rms this register is the raw rms value from the current a/d converter in lsbs (square root of the top 32-bits of raw2_i_rms + offset_i_rms). by definition, this register will always contain a positive value (even if the ct is in backwards). this register is over- written every line_cyc line cycle and is written only once, if calibration is enabled. 3.10 i_rms this register is the rms value of phase a current in x a/lsb, as determined by the value in the gain_i_rms register. when displaying the rms current, multiply the (dec- imal) value in these registers by x to get the display value in amperes. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.11 raw2_v_rms this register is the square of the raw rms value from the voltage a/d converter in lsbs. by definition, it will always contain a positive value. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.12 raw_v_rms this is the raw rms value from the voltage a/d converter in lsbs (square root of the top 32-bits of raw2_v_rms + offset_v_rms). by definition, this register will always contain a positive value. the register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.13 v_rms this register is the rms value of the voltage, in x 0.01 v/lsb, as determined by the value in the gain_v_rms register. when displaying the rms voltage, assume a cal- ibrated meter exists and multiply the (decimal) value in these registers by x to get the display value in volts. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). name bits cof raw_i_rms 16 r name bits cof i_rms 16 r name bits cof raw2_v_rms 64 r name bits cof raw_v_rms 16 r name bits cof v_rms 16 r
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 23 3.14 line_frequency this register holds the measured line frequency using the zero crossing technique. 3.15 raw_power_act this register is the raw active power, as it represents the sum of current a/d value times voltage a/d value results over line_cyc line cycles (each line cycle has 128 results). each current times voltage multiplication results in a 32-bit word. there are up to 256 line cycles with each line cycle being 128 results, and each result being 32-bit. thus, 48 bits are needed. this is the register to be read during calibration for calculating the offset and gain values associated with active power, offset_power_act and gain_power_act. this register is overwritten every line cycle, however if calibration is enabled, the updates will stop once the line_cyc line cycles have elapsed. 3.16 power_act this register is the value for active power. the goal of the calibration is to get this reg- ister value to equal x w/lsb. this is done with the offset_power_act and gain_power_act registers. when displaying the power, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.17 power_app this is the value of the apparent power. the goal of the calibration is to get this value to equal x va/lsb. this is done with the gain_power_app registers. when display- ing the power for phase a, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). name bits cof line_frequency 16 r name bits cof raw_power_act 64 r name bits cof power_act 32 r name bits cof power_app 32 r
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 24 ? 2012 microchip technology inc. 3.18 raw_power_react this is the raw reactive power. this register is read during the calibration for calculating the gain values associated with the reactive power and gain_power_react. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). this register is accumulated on a line-cycle basis. 3.19 power_react this is the value for reactive power. the goal is to get this value to equal x var/lsb. this is done with the gain_power_react register. when displaying the power, multiply the (decimal) value in this register by x to get the display value in watts. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.20 period this 32-bit register represents the total number of clock ticks that elapsed over the most recent line_cyc line cycle. each lsb represents 1.6 s with a 4 mhz clock on the microcontroller. this register is overwritten every line_cyc line cycle (written only once if calibration is enabled). 3.21 energy_act the design updates the energy register using the cf pulse blink output count. in this method, the energy registers increments every pulse by a value equal to 1/(meter_constant). energy_act = energy_act + (1/meter_constant) the gain calibration registers gain_numr_energy_act and gain_denr_energy_act operate the same for this method also. name bits cof raw_power_react 64 r name bits cof power_react 32 r name bits cof period 32 r name bits cof energy_act 32 r raw_energy_act 64 r
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 25 3.22 energy_app these two registers represent the total apparent energy accumulated so far. 3.23 i_abs_max not implemented in this firmware/software release. 3.24 v_abs_max not implemented in this firmware/software release. 3.25 energy_react the design updates the reactive energy register using the cf pulse blink output. in this method, the energy registers increment every pulse by a value equal to 1/(meter_constant). energy_react = energy_react + (1/meter_constant) the gain calibration registers gain_numr_energy_act and gain_denr_energy_act operate the same for this method also. 3.26 phase_compensation phase delay, signed 8-bit value, provides the phase compensation by sampling time/2. name bits cof energy_app 32 r raw_energy_app 64 r name bits cof i_abs_max 8 r name bits cof v_abs_max 8 r/w name bits cof energy_react 32 r raw_energy_react 64 r name bits cof phase_compensation 8 r/w
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 26 ? 2012 microchip technology inc. 3.27 offset_i_rms square of the offset for rms current reading, signed 16-bit value. note that this value should be similar to the adc?s noise squared. at a gain of 1, the noise will be about 1 lsb, 2 lsbs at a gain of 2, 6 lsbs at a gain of 8, 11 lsbs at a gain of 16, and 22 lsbs at a gain of 32. there may be other sources of noise. using the square of the offset allows for higher accuracy. the value will be added before the square root is taken when calculating the final rms value. 3.28 offset_v_rms square of offset for rms voltage reading, signed 8-bit value. note that this value should be similar to the adc?s noise squared. for the voltage channel, the noise will be about 1 lsb. there may be other sources of noise. using the square of the offset allows for higher accuracy. the value will be added before the square root is taken when calculating the final rms value. 3.29 gain_i_rms current gain to produce x a/lsb. the value is always less than one (for example, 32,767 = 0.9999695). 3.30 gain_v_rms voltage gain to produce 0.1 v/lsb in the v_rms register. the value is always less than one (for example, 32,767 = 0.9999695). 3.31 offset_power_act active power offset (this is a straight offset, not the square, as with voltage and current). a much larger value is needed because the power is a running sum. this is a 32-bit signed value. name bits cof offset_i_rms 16 r/w name bits cof offset_v_rms 16 r/w name bits cof gain_i_rms 16 r/w name bits cof gain_v_rms 16 r/w name bits cof offset_power_act 32 r/w
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 27 3.32 gain_power_act active power gain to produce x w/lsb. the value is always less than one (for example, 32,767 = 0.9999695). 3.33 offset_power_react reactive power offset (this is a straight offset, not the square, as with voltage and cur- rent). a much larger value is needed because the power is a running sum. this is a 32-bit signed value. 3.34 gain_power_react reactive power gain to produce x w/lsb. the value is always less than one (for exam- ple, 32,767 = 0.9999695). 3.35 gain_energy_act active energy gain to produce x wh/lsb. the value is always less than one (for exam- ple, 32,767 = 0.9999695). 3.36 gain_energy_app apparent energy gain to produce x vah/lsb. the value is always less than one (for example, 32,767 = 0.9999695). 3.37 gain_energy_react reactive energy gain to produce x varh/lsb. the value is always less than one (for example, 32,767 = 0.9999695). name bits cof gain_power_act 16 r/w name bits cof offset_power_react 32 r/w name bits cof gain_power_react 16 r/w name bits cof gain_energy_act 16 r/w name bits cof gain_energy_app 16 r/w name bits cof gain_energy_react 16 r/w
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 28 ? 2012 microchip technology inc. 3.38 cf_pulse_width defines the cf pulse width from 0 to 255. length of width is valued * 8 * (1/line_frequency)/128) ms. a maximum of 0.266 seconds for 60 hz and 0.319 seconds for 50 hz. if the value is 0, no cf pulse is produced. 3.39 gain_denr_energy_act 8-bit signed value. represents the number of shifts for active power energy register energy_act before gain_denr_energy_act is applied. 3.40 gain_numr_energy_act active power gain to produce a specified pulses per watt-hour. the value is always less than one (for example, 32,767 = 0.9999695). 3.41 mode1_def mode default power-up settings. on power-up, this register will be read and placed into the mode register. 3.42 cal_status the cal_status register holds the calibration status for each individual phase. broken down by phase, these are the values that can be calibrated. each bit has the status of 0 = not calibrated, 1 =calibrated. name bits cof cf_pulse_width 8 r/w name bits cof gain_denr_energy_act 8 r/w name bits cof gain_numr_energy_act 16 r/w name bits cof mode1_def 16 r/w register 3-4: cal_status register r/w-0 r/w-0 r/w-0 u-0 u-0 r/w-0 r/w-0 r/w-0 phase_com pensation offset_i_ rms offset_v_ rms ? ? gain_i_rms gain_v_rms offset_po wer_act bit 15 bit 8 u-0 r/w-0 u-0 u-0 u-0 r/w-0 u-0 u-0 ? gain_pow er_act ? ? ? gain_powe r_react ? ? bit 7 bit 0
calculation engine and register description ? 2012 microchip technology inc. ds51968a-page 29 3.43 maximum current this register holds the maximum current for the meter (i max ). 3.44 calibration_voltage this register holds the calibration voltage of the meter (v cal ). 3.45 calibration_current this register holds the calibration current of the meter (i cal ). 3.46 calibration_frequency this register holds the calibration frequency of the meter. 3.47 meter_constant this register holds the meter constant in imp/kwh or imp/kvarh. legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 15-0 all bits: calibration register status bits 1 = this register has been calibrated 0 = this register is not calibrated name bits cof maximum_current 16 r/w register 3-4: cal_status register (continued) name bits cof calibration_voltage 16 r/w name bits cof calibration_current 16 r/w name bits cof calibration_frequency 16 r/w name bits cof meter_constant 16 r/w
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 30 ? 2012 microchip technology inc. 3.48 calibration_line_cycle this register holds the number of line cycles used during the calibration. 3.49 gain_denr_energy_react 8-bit signed value. represents the number of shifts for reactive power energy register, before gain_numr_energy_react is applied. 3.50 gain_numr_energy_react reactive power gain to produce a specified pulse per var-hour. the value is always less than one (for example, 32,767 = 0.9999695). 3.51 phase_compensation_90 phase delay for reactive power, signed 8-bit value, sampling time/2. 3.52 creep_thrshold_minute this 8-bit register holds the decimal representation of the creep threshold time in minutes (total creep is minutes + seconds register). 3.53 creep_thrshold_second this 8-bit register holds the decimal representation of the creep threshold time in seconds (total creep is minutes + seconds register). name bits cof calibration_frequency 16 r/w name bits cof gain_denr_energy_react 8 r/w name bits cof gain_numr_energy_react 16 r/w name bits cof phase_compensation_90 8 r/w name bits cof creep_thrshold_minute 8 r/w name bits cof creep_thrshold_second 8 r/w
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 31 chapter 4. meter protocol and timings 4.1 protocol the universal asynchronous receiver/transmitter (uart) of the pic18f65j90 is used to access the register map of the meter. in addition to the reading and writing of the registers, there are also dedicated commands for clearing calibration registers, loading calibration registers and storing calibration registers to flash. the first byte uart data is an ascii character that represents the command, and each command has a specific protocol. each command ends with the ascii character ?x?. 4.1.1 command description the first byte of the data (byte 0) is an ascii character e, l, s, w and r. ? e ? echo all data received (echo) ? l ? load calibration registers from flash (load) ? s ? store calibration registers (store) ? w ? write bytes (write) ? r ? read bytes (read) the last data byte is always an 'x' character. all commands will result in the same command being returned. the exception is the 'r' (read) command which will return additional data in lieu of the number of bytes. 4.1.1.1 ?e? echo: - echo all data received example: 'eabcdefghijklmnopqrstuvwyz1234567890x'. returns: 'eabcdefghijklmnopqrstuvwyz1234567890x'. 4.1.1.2 ?l? load: load calibration registers from flash. example: 'lx'. returns: 'lx'. this command is used to verify that the calibration values were actually written into flash (or eeprom). once the software executes a 'sx' command, it should verify that the values were stored by issuing an 'lx' command and then reading the calibration values with a 'r' command. 4.1.1.3 ?s? store: store calibration registers into flash note that the store command will write all calibration values to internal eeprom, and this function takes some time. during that time, the meter is not functional. the store command should only be used after calibrating the meter, and not while it is in actual use. example: 'sx'. returns: 'sx'.
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 32 ? 2012 microchip technology inc. 4.1.1.4 ?w? write: write starting at specified address write specified bytes. example: 'w030000102030405060708090a0b0c0d0e0fx'. returns: 'w030000102030405060708090a0b0c0d0e0fx'. figure 4-1: write command protocol. 4.1.1.5 ?r? read: read starting at specified address example: 'r03010x' (read 16 bytes starting at address 30h). returns: 'r030000102030405060708090a0b0c0d0e0fx' figure 4-2: read command protocol. note: if the number of data characters is odd, the last character (the one just prior to the 'x') will be ignored. command byte 76543210 3 address bytes (ascii) 76 543210 76543210 76543210 76543210 7 6543210 ascii data table 4-1: write command examples description command ascii command hex write of 255d to pha_w_off register ?w 170 00 f f x? 57 31 37 30 30 30 46 46 58 ?x? (ascii) 76543210 note: for 16 bytes, there are 32 ascii characters returned, or two characters per byte. command byte 76543210 3 address bytes (ascii) 76543210 76543210 76543210 76543210 # bytes to read (2 bytes ascii) 76543210 76543210 ?x? (ascii) table 4-2: read command examples description command ascii command hex read on energy_act_l_raw register ?r 0d4 06 x? 52 00 44 34 30 36 58
mcp3901 and pic18f65j90 energy meter reference design ? 2011 microchip technology inc. ds51968a-page 33 appendix a. schematic and layouts a.1 introduction this appendix contains the following schematics and layouts for the mcp3901 and pic18f65j90 energy meter reference design: ? board ? adc schematic ? board ? mcu schematic ? board ? lcd and usb schematic ? board ? top silk and pads ? board ? top copper ? board ? bottom copper ? board ? bottom silk and pads ? board ? top 3d ? board ? bottom 3d a.2 schematics and pcb layout the layer order is shown in figure a-1. figure a-1: layer order. to p l a y e r bottom layer
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 34 ? 2011 microchip technology inc. a.3 board ? adc schematic gnda gnda 100nf 100nf c6 c7 gnda gnda mcp3901 ssop20 !!! danger!!! connecting to j1, p1 or tp5 may cause external equipment damage and shock hazard tp1 tp2 tp3 tp4 tp6 tp7 mpu_sck mpu_sdo mpu_sdi afe_clkin gndb u1 gnda gndb c1 100nf c2 100nf 10 10 r1 r2 +5v +5v 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 reset dv dd av dd ch0+ ch0- ch1- ch1+ agnd refin/out+ refin sdi sdo sck cs osc2 osc1/clki dr mdat0 mdat1 dgnd mpu_sdo mpu_sdi mpu_sck afe_f0/cs afe_clkin afe_dr gnda r3 none cp1 l1 1k tf r4 300ma/150 r5 1k tf l2 300ma/150 r6 none cp2 gnda npo 100nf c3 npo 100nf c4 r7 1k npo 100nf c5 gnda gnda gnda gnda line_shunt1 line_shunt2 high cp3 l3 300ma/150 r8 332k r9 332k r10 1k npo 100nf c8 gnda gnda power d1 +9v in mra4005t3g 2 1 2 3 1 low rapc722 j1 d2 mra4005t3g 21 1 r11 100 d3 bzg03c15g c9 l4 150 0.47uf 470uf c11 high 275vac mov1 cp4 shunt gnd cp5 gndb gndb gndb gndb gndb gndb gndb gnda l5 150 u2 mcp1703 in out gnd 3 2 gndb gndb 100nf c12 10uf c13 100nf c14 +5v +5v q1 mcp1700t-3302e/tt in out gnd 32 1 100nf c15 c10 10uf gndb gndb cap-smt-electro +3.3v afe_sync afe_f0/cs afe_sync (low) tp5 gnda (low)
schematic and layouts ? 2011 microchip technology inc. ds51968a-page 35 a.4 board ? mcu schematic re1/lcdbias2 re0/lcdbias1 gndb lcdbias3 rf1/an6/c2out/seg19 rb0/int0/seg30 re3/com0 re4/com1 re5/com2 re6/com3 re7/ccp2 (1) /seg31 rd0/seg0 v dd v ss rd1/seg1 rd2/seg2 rd3/seg3 rd4/seg4 rd5/seg5 rd6/seg6 rd7/seg7 envreg av dd av ss ra3/an3/v ref + ra2/an2//v ref ra1/an1/seg18 ra0/an0 v ss v dd ra5/an4/seg15 ra4/t0cki/seg14 rc1/t1osi/ccp2/seg12 rc0/t1oso/t13cki rc6/tx1/ck1/seg27 rc7/rx1/dt1/seg28 rg0/lcdbias0 rg1/tx2/ck2 rg2/rx2/dt2/vlcap1 rg3/vlcap2 rg4/seg26 v ss vddcore/vcap rf7/an5/ss/seg25 rf6/an11/seg24 rf5/an10/cvref/seg23 rf4/an9/seg22 rf3/an8/seg21 rf2/an7/c1out/seg20 rb1/int1/seg8 rb2/int2/seg9 rb3/int3/seg10 rb4/kbi0/seg11 rb5/kbi1/seg29 rb6/kbi2/pgc v ss v dd osc2/clko/ra6 osc1/clki/ra7 rb7/kbi3/pgd rc5/sdo/seg12 rc4/sdi/sda/seg16 rc3/sck/scl/seg17 rc2/ccp1/seg13 gndb gndb gndb gndb mpu_rg1 mpu_rg4 lcd_10a/10f/10e/10d lcd_10b/10g/aoc/nc lcd_9a/0f/9e/9d lcd_9b/9f/9e/nc lcd_8a/8f/8e/8d lcd_8b/8g/8c/nc +3.3v gndb lcd_com1 lcd_com2 lcd_com3 lcd_com4 lcd_v/k2/r/h2 lcd_1b/1g/1c/1p +3.3v gndb lcd_1a/1f/1e/1d lcd_2b/2g/2c/2p lcd_2a/2f/2e/2d lcd_3b/3g/3c/3p lcd_3a/3f/3e/3d lcd_4b/4g/4c/4p lcd_4a/4f/4e/4d lcd_7a/7f/7e/7d +3.3v +3.3v gndb cf_active cf_reactive mem_cs afe_sync gndb +3.3v afe_f0/cs ir_rx lcd_v/k1/h1/a/w ir_tx mpu_tx1 mpu_rx1 lcd_5b/5g/5c/nc lcd_5a/5f/re/5d lcd_6b/6g/6c/nc lcd_6a/6f/6e/6d lcd_7b/7g/7c/nc mpu_pgc gndb gndb gndb gndb +3.3v mpu_pgd mpu_sdo mpu_sdi mpu_sck afe_clkin mpu_rg4 mpu_rg1 gndb +3.3v gndb +3.3v gndb mpu_pgc mpu_pgd +3.3v pic18f65j90 icd gndb gndb gndb gndb +3.3v +3.3v +3.3v +3.3v gndb gndb +3.3v mpu_sdi mpu_sdo mpu_sck +3.3v +3.3v v ss v cc sck si so u4 25lc256-i/sm cf_active cf_reactive gndb gndb gndb gndb red active pwr reactive pwr red mclr mpu_mclr afe_dr u3 pic18f6xj90-64tqfp 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 +3.3v mpu_mclr 1 2 3 4 5 6 gndb +3.3v gndb r17 10k p1 hdr6x1 r13 4.7k sw1 b3s-1002p mom-nc push=hi 100nf c25 1k r14 r15 4.7k sw2 b3s-1002p mom-nc push=hi 100nf c29 1k r16 100nf c17 100nf c20 100nf c19 100nf c18 cs hold wp 8 7 6 5 1 2 3 4 mem_cs 100nf c30 1 2 3 4 1 2 1 2 1 2 3 4 r21 1.2k r22 698 d6 gm1jr35200ae d4 gm1jr35200ae u7 pc365n hdr2x1 j3 hdr2x1 j2 u6 pc365n r19 698 r18 1.2k c26 10uf 47nf c24 47nf c23 47nf 47nf c21 c22 r12 none 47nf c16 4mhz x1 27pf c28 c27 27pf ir_tx gndb +3.3v +3.3v ir_rx gndb gndb gndb dnp mcp130 +3.3v v dd v ss out gndb dnp gndb gndb 2 3 41 100nf c32 u8 gp1us301xp gl100mn1mp1 d5 r20 698 mpu_mclr 1 2 3 mcp130t-270/tt u5 sw3 b3s-1002p c31 100nf
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 36 ? 2011 microchip technology inc. a.5 board ? lcd and usb schematic lcd_v/k1/h1/a/w lcd_v/k2/r/h2 lcd_11a/aaf/11e/11d lcd_11b/11g/11c/nc lcd_10a/10f/10e/10d lcd_10b/10g/aoc/nc lcd_9a/0f/9e/9d lcd_9b/9f/9e/nc lcd_8a/8f/8e/8d lcd_8b/8g/8c/nc lcd_7a/7f/7e/7d lcd_7b/7g/7c/nc lcd_6a/6f/6e/6d lcd_6b/6g/6c/nc lcd_5a/5f/re/5d lcd_5b/5g/5c/nc lcd_4a/4f/4e/4d lcd_4b/4g/4c/4p lcd_3a/3f/3e/3d lcd_3b/3g/3c/3p lcd1 india lcd lcd_2a/2f/2e/2d lcd_2b/2g/2c/2p lcd_1a/1f/1e/1d lcd_1b/1g/1c/1p lcd_com1 lcd_com2 lcd_com3 lcd_com4 k1h1/a/w v/k2/r/h2 11a/11f/11e/11d 11b/11g/11c/nc 10a/10f/10e/10d 10b/10g/10c/nc 9a/9f/9e/9d 9b/9g/9c/nc 8a/8f/8e/8d 8b/8g/8c/nc 7a/7f/7e/7d 7b/7g/7c/nc 6a/6f/6e/6d 6b/6g/6c/nc 5a/5f/5e/5d 5b/5g/5c/nc 4a/4f/4e/4d 4b/4g/4c/4p 3a/3f/3e/3d 3b/3g/3c/3p 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 28 27 26 25 24 23 22 21 2a/2f/2e/2d 2b/2g/2c/2p 1a/1f/1e/1d 1b/1g/1c/1p com1 com2 com3 com4 !!! danger !!! connecting to j1, p1, j2 or tp1 may cause external equipment damage and shock hazard lcd u9 usb_minib_vertical 1 2 3 4 5 usb_+5v d- d+ 6 7 gnd gnd gnd c33 0.1uf u11 +3.3v mpu_tx1 mpu_rx1 +3.3v gndb gnd adum1201 gndb 100nf c35 vdd2 vdd1 voa via vob gnd2 vib gnd1 mcp2200_rx mcp2200_tx v ss d+ d- vusb gp0/sspnd gp1/usbcfg gp2 cts rx rts c34 0.1uf u10 v dd osc1 osc2 rst gp7/txled gp6/rxled gp5 gp4 gp3 tx mcp2200_ssop20 gnd 470 r23 gnd usb_+5v d7 r25 470 r24 470 1 2 3 4 resonator-cstce 12 mhz x2 red green
schematic and layouts ? 2011 microchip technology inc. ds51968a-page 37 a.6 board ? top silk and pads
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 38 ? 2011 microchip technology inc. a.7 board ? top copper
schematic and layouts ? 2011 microchip technology inc. ds51968a-page 39 a.8 board ? bottom copper
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 40 ? 2011 microchip technology inc. a.9 board ? bottom silk and pads
schematic and layouts ? 2011 microchip technology inc. ds51968a-page 41 a.10 board ? top 3d
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 42 ? 2011 microchip technology inc. a.11 board ? bottom 3d
mcp3901 and pic18f65j90 energy meter reference design ? 2012 microchip technology inc. ds51968a-page 43 appendix b. bill of materials (bom) table b-1: bill of materials (bom) qty reference description manufacturer part number 20 c1, c2, c5, c6 c7, c8, c12, c14, c15, c17, c18, c19, c20, c25, c29, c30, c31, c33, c34, c35 cap cer .1uf 25v 10% x7r 0603 murata electronics ? grm188r71e104ka01d 2 c3, c4 cap cer .1uf 25v x7r 1206 fo kemet ? c1206f104k3ractu 1 c9 cap .47uf 305vac lead spacing 22.5 mm, wxhxl = 10.5 x 16.5 x 26.5 epcos inc. b32933b3474k000 1 c10 cap 10uf 16v elect fc smd panasonic ? - ecg eee-fc1c100r 1 c11 cap 470uf 25v elect fc smd panasonic - ecg eee-fc1e471p 2 c13, c26 cap cer 10uf 6.3v x5r 0603 murata electronics grm188r60j106me47d 5 c16, c21, c22, c23, c24 cap cer 47000pf 25v 10% x7r 0603 murata electronics grm188r71473ka01d 2 c27, c28 cap cer 27pf 50v 5% c0g 0603 tdk corporation c1608c0g1h270j 2 d1, d2 diode schottky 40v 1a smb on semiconductor ? mbrs140t3g 1 d3 diode zener 15v 1.5w sma on semiconductor bzg03c15g 2 d4, d6 led 1.6x0.8mm 625nm red clr smd kingbright corp. apt1608ec 1 d7 led 2x1.2mm rd/gn wtr clr smd kingbright corp. aphbm2012surkcgkc 1 j1 conn powerjack mini r/a t/h cui inc. pj-102b 3 l1, l2, l3 ferrite 300ma 150 ohm 1806 smd laird-signal integrity products li1806c151r-10 2 l4, l5 ferrite 300ma 150 ohm 1806 smd laird-signal integrity products li1806c151r-10 1 lcd1 energy meter lcd display deepakshi display devices dp-093 1 mov 1 varistor 275v rms 20mm radial epcos inc. s20k275e2 1 p1 6 x 1 header 2.54 mm on center 6 mm/2.5 mm samtec tsw-106-07-g-s 1 pcb rohs compliant bare pcb, mcp3901 pic18f65j90 shunt meter ref des ? 104-00342 1 q1 ic reg ldo 3.3v 250ma sot23-3 microchip technology inc. mcp1700t-3302e/tt 2 r1, r2 res 10.0 ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf10r0v 4 r4, r5, r7, r10 res 1.00k ohm 1/8w 1% 0805 smd panasonic - ecg erj-6enf1001v 2 r8, r9 res 332k ohm 1/4 1% 1206 smd yageo corp. rc1206fr-07332kl note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components.
mcp3901 and pic18f65j90 energy meter reference design ds51968a-page 44 ? 2012 microchip technology inc. table b-2: bill of materials (components not installed) 1 r11 res 100 ohm 1w 5% 2512 smd panasonic - ecg erj-1tnf1000u 2 r13, r15 res 4.70k ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf4701v 2 r14, r16 res 1.00k ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf1001v 1 r17 res 10.0k ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf1002v 2 r18, r21 res 100 ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf1000v 2 r19, r22 res 698 ohm 1/10w 1% 0603 smd rohm semiconductor mcr03ezpfx6980 3 r23, r24, r25 res 470 ohm 1/10w 1% 0603 smd panasonic - ecg erj-3ekf4700v 3sw1, sw2, sw3 switch tact 6mm 230gf h=4.3mm omron electronics b3s-1002p 1 tp5 wire test point 0.3? length component corporation pj-202-30 1 u1 ic energy meter ssop-20 microchip technology inc. mcp3901ao-i/ss 1 u2 ic reg ldo 5v 250ma sot-223-3 microchip technology inc. mcp1703-5002e/db 1 u3 64/80-pin, high-performance microcon- trollers with lcd driver and nanowatt tech- nology tqfp-64 microchip technology inc. pic18f65j90-i/pty 1 u4 256k spi bus serial eeprom soic-8 microchip technology inc. 25lc256-i/sn 2 u6, u7 photocoupler darl out 4-smd sharp? electronic corp. pc36nj0000f 1 u9 conn rugged usb rcpt vert mini b amphenol commercial musbb55104 1 u10 ic usb to uart ssop-20 microchip technology inc. mcp2200-i/ss 1 u11 ic isolator digital dual 8-soic analog devices inc. adum1201crz-rl7 1 x1 crystal 4.000 mhz 18pf smd abracon corporation abls-4.000mhz-b4-t 1 x2 cer resonator 12.0mhz smd murata electronics cstce12m0g55-r0 qty reference description manufacturer part number 1 c32 cap cer .1uf 25v 10% x7r 0603 ? ? 1 d5 do not install ? ? 2 j2, j3 do not install ? ? 2 r3, r6 do not install ? ? 1 r12 do not install ? ? 1 r20 res 698 ohm 1/10w 0603 smd ? ? 1 u5 microcontroller supervisory circuit with open drain output sot23-3 ?? 1 c32 cap cer .1uf 25v 10% x7r 0603 ? ? note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components table b-1: bill of materials (bom) (continued) qty reference description manufacturer part number note 1: the components listed in this bill of materials are representative of the pcb assembly. the released bom used in manufacturing uses all rohs-compliant components.
? 2012 microchip technology inc. ds51968a-page 45
ds51968a-page 46 ? 2012 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hangzhou tel: 86-571-2819-3187 fax: 86-571-2819-3189 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - osaka tel: 81-66-152-7160 fax: 81-66-152-9310 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-536-4818 fax: 886-7-330-9305 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 worldwide sales and service 11/29/11


▲Up To Search▲   

 
Price & Availability of MCP390112

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X